#pragma once

#include "../_inc_app/CtrlButton.h"

// CWndSystemMenu

class CWndSystemMenu : public CWnd
{
	DECLARE_DYNAMIC(CWndSystemMenu)

private:
	CToolTipCtrl	m_ToolTipCtrl;

	CCtrlButton		m_btnExit;
	CCtrlButton		m_btnHide;
	CCtrlButton		m_btnMax;
	CCtrlButton		m_btnNor1;
	CCtrlButton		m_btnFull;
	CCtrlButton		m_btnNor2;

	CStringArray m_sarrText;

	void LoadText();

public:
	CWndSystemMenu();
	virtual ~CWndSystemMenu();

	void UpdateWnd();

protected:
	afx_msg long OnCtlMessage(UINT wParam, LONG lParam);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	DECLARE_MESSAGE_MAP()

public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);

	//////////////////////////////////////////////////////////////////////////
	void SetCheckMaximize(BOOL bCheck);
	void SetCheckFull(BOOL bCheck);

	void RefreshLang();
};


